<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>支付成功</title>
</head>
<body>
支付成功,<span id="timeMsg">5</span>秒后关闭页面...
</body>
</html>
<script>
    let time = 5;
    window.setInterval(function () {
        if (time == 1) {
            window.close();
        }
        time--;
        document.getElementById("timeMsg").innerHTML = time;
    }, 1000)
</script>
